/* gm_main.c -- Principal do GEARMedula
 *
 * Copyright (C) 2008, Diogo F. S. Ramos <diogo.ramos@usp.br>
 * GEAR - Grupo de Estudos Avançados em Robótica
 * <http://www.sel.eesc.usp.br/gear>
 *
 * This file is part os GEARMedula.
 * 
 * GEARMedula is free software: you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, version 3 of the
 * License.
 * 
 * GEARMedula is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see
 * <http://www.gnu.org/licenses/>.
 */

#include <stdlib.h>
#include <stdio.h>

#include <sys/types.h>
#include <unistd.h>

#include "gm_medula.h"
#include "gm_sim.h"
#include "gm_server.h"
#include "gm_monitor.h"
#include "gm_utils.h"


/** Função Main.
 *
 * @param argc Número de parâmetros passados pela linha de comando.
 *
 * @param *argv[] Vetor com os parâmetros.
 *
 * @return Saída do programa. EXIT_SUCCESS em caso de sucesso.
 */
int
main( int argc, char *argv[] )
{
    gm_args_t args_passed;
    gm_medula_t * medula = NULL;


    /* Passando os parâmetros da linha de comando */
    if( gm_args_parse( argc, argv, &args_passed ) )
	return EXIT_SUCCESS;

    medula = gm_medula_new();
    gm_medula_init( medula, &args_passed );
    
    return EXIT_SUCCESS;
}
